package com.six.backend.pojo;

import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;

import javax.validation.constraints.NotNull;
import java.util.Date;

/**
 * @author : 张重阳
 * @date : 2021-11-30 14:30
 */

@NoArgsConstructor
@AllArgsConstructor
@Data
@ToString
@Builder
@ApiModel("德尔菲")
public class Delphi {

    @ApiModelProperty("德尔菲编号")
    private Integer id;

    @ApiModelProperty("工具编号")
    private Integer toolId;

    @ApiModelProperty("问卷编号")
    @NotNull
    @JsonProperty(value = "lunId")
    private Integer questionnaireId;

    @ApiModelProperty("轮次")
    @NotNull
    @JsonProperty(value = "num")
    private Integer turn;

    @ApiModelProperty("问卷状态")
    private Integer state;

    @ApiModelProperty("推送时间")
    private Date sendTime;

    @ApiModelProperty("结束时间")
    private Date endTime;

    @ApiModelProperty("问卷名称")
    private String name;

    @ApiModelProperty("下一个德尔菲问卷编号")
    private Integer nextDelphiId;
}
